\hypertarget{classduye_1_1_xml_declaration}{\section{duye\-:\-:Xml\-Declaration Class Reference}
\label{classduye_1_1_xml_declaration}\index{duye\-::\-Xml\-Declaration@{duye\-::\-Xml\-Declaration}}
}


In correct X\-M\-L the declaration is the first entry in the file.  




{\ttfamily \#include $<$duye\-\_\-xml.\-h$>$}

Inheritance diagram for duye\-:\-:Xml\-Declaration\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classduye_1_1_xml_declaration}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_declaration_aeaf91492ff1d269a8767173808dea122}{\hyperlink{classduye_1_1_xml_declaration_aeaf91492ff1d269a8767173808dea122}{Xml\-Declaration} ()}\label{classduye_1_1_xml_declaration_aeaf91492ff1d269a8767173808dea122}

\begin{DoxyCompactList}\small\item\em Construct an empty declaration. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_afd5a02cce3734114216a064f1d7ffea5}{\hyperlink{classduye_1_1_xml_declaration_afd5a02cce3734114216a064f1d7ffea5}{Xml\-Declaration} (const std\-::string \&\hyperlink{classduye_1_1_xml_declaration_a5c437bd76f8f2c0299a3bc3715f068d1}{version}, const std\-::string \&\hyperlink{classduye_1_1_xml_declaration_aba58de4c490c85248291b60a7410bbf8}{encoding}, const std\-::string \&\hyperlink{classduye_1_1_xml_declaration_aba6db219826f79a10e80a1b6ec937219}{standalone})}\label{classduye_1_1_xml_declaration_afd5a02cce3734114216a064f1d7ffea5}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_a9bff056704ef741cf5d17d00d0090f36}{\hyperlink{classduye_1_1_xml_declaration_a9bff056704ef741cf5d17d00d0090f36}{Xml\-Declaration} (const char $\ast$\hyperlink{classduye_1_1_xml_declaration_a5c437bd76f8f2c0299a3bc3715f068d1}{version}, const char $\ast$\hyperlink{classduye_1_1_xml_declaration_aba58de4c490c85248291b60a7410bbf8}{encoding}, const char $\ast$\hyperlink{classduye_1_1_xml_declaration_aba6db219826f79a10e80a1b6ec937219}{standalone})}\label{classduye_1_1_xml_declaration_a9bff056704ef741cf5d17d00d0090f36}

\begin{DoxyCompactList}\small\item\em Construct. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_a71434c22d2a0cafcb3c3a7c31b8c8906}{{\bfseries Xml\-Declaration} (const \hyperlink{classduye_1_1_xml_declaration}{Xml\-Declaration} \&copy)}\label{classduye_1_1_xml_declaration_a71434c22d2a0cafcb3c3a7c31b8c8906}

\item 
\hypertarget{classduye_1_1_xml_declaration_a36154f12f15409bf28261e33e1df2c18}{\hyperlink{classduye_1_1_xml_declaration}{Xml\-Declaration} \& {\bfseries operator=} (const \hyperlink{classduye_1_1_xml_declaration}{Xml\-Declaration} \&copy)}\label{classduye_1_1_xml_declaration_a36154f12f15409bf28261e33e1df2c18}

\item 
\hypertarget{classduye_1_1_xml_declaration_a5c437bd76f8f2c0299a3bc3715f068d1}{const char $\ast$ \hyperlink{classduye_1_1_xml_declaration_a5c437bd76f8f2c0299a3bc3715f068d1}{version} () const }\label{classduye_1_1_xml_declaration_a5c437bd76f8f2c0299a3bc3715f068d1}

\begin{DoxyCompactList}\small\item\em Version. Will return an empty string if none was found. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_aba58de4c490c85248291b60a7410bbf8}{const char $\ast$ \hyperlink{classduye_1_1_xml_declaration_aba58de4c490c85248291b60a7410bbf8}{encoding} () const }\label{classduye_1_1_xml_declaration_aba58de4c490c85248291b60a7410bbf8}

\begin{DoxyCompactList}\small\item\em Encoding. Will return an empty string if none was found. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_aba6db219826f79a10e80a1b6ec937219}{const char $\ast$ \hyperlink{classduye_1_1_xml_declaration_aba6db219826f79a10e80a1b6ec937219}{standalone} () const }\label{classduye_1_1_xml_declaration_aba6db219826f79a10e80a1b6ec937219}

\begin{DoxyCompactList}\small\item\em Is this a standalone document? \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_a83d2834249f96fe9dc2e0fd589a1af71}{virtual \hyperlink{classduye_1_1_xml_node}{Xml\-Node} $\ast$ \hyperlink{classduye_1_1_xml_declaration_a83d2834249f96fe9dc2e0fd589a1af71}{clone} () const }\label{classduye_1_1_xml_declaration_a83d2834249f96fe9dc2e0fd589a1af71}

\begin{DoxyCompactList}\small\item\em Creates a copy of this Declaration and returns it. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_a5b8e0517d60f5f679b8f51573ec0d9c2}{virtual void {\bfseries print} (F\-I\-L\-E $\ast$cfile, int depth, std\-::string $\ast$str) const }\label{classduye_1_1_xml_declaration_a5b8e0517d60f5f679b8f51573ec0d9c2}

\item 
virtual void \hyperlink{classduye_1_1_xml_declaration_a3e3a634a7c060253d6f38a28213639b9}{print} (F\-I\-L\-E $\ast$cfile, int depth) const 
\begin{DoxyCompactList}\small\item\em All Gny\-Xml classes can print themselves to a filestream or the string class (G\-Xml\-String in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_add695062c61c17efe4d52b69be04fc4f}{void {\bfseries xml\-To\-Str} (std\-::string \&out\-Xml, int depth) const }\label{classduye_1_1_xml_declaration_add695062c61c17efe4d52b69be04fc4f}

\item 
\hypertarget{classduye_1_1_xml_declaration_a5519c43a57aa51a9e344c55749a1831f}{virtual const char $\ast$ \hyperlink{classduye_1_1_xml_declaration_a5519c43a57aa51a9e344c55749a1831f}{parse} (const char $\ast$p, Xml\-Parsing\-Data $\ast$data, Xml\-Encoding \hyperlink{classduye_1_1_xml_declaration_aba58de4c490c85248291b60a7410bbf8}{encoding})}\label{classduye_1_1_xml_declaration_a5519c43a57aa51a9e344c55749a1831f}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_ad742c8306484bd853a3156603cfc2f2a}{virtual const \hyperlink{classduye_1_1_xml_declaration}{Xml\-Declaration} $\ast$ \hyperlink{classduye_1_1_xml_declaration_ad742c8306484bd853a3156603cfc2f2a}{to\-Declaration} () const }\label{classduye_1_1_xml_declaration_ad742c8306484bd853a3156603cfc2f2a}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_aed9ec38dccc8a896c11238f2a1315912}{virtual \hyperlink{classduye_1_1_xml_declaration}{Xml\-Declaration} $\ast$ \hyperlink{classduye_1_1_xml_declaration_aed9ec38dccc8a896c11238f2a1315912}{to\-Declaration} ()}\label{classduye_1_1_xml_declaration_aed9ec38dccc8a896c11238f2a1315912}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null if not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_declaration_ac5a1661738cab9369fb00b0ab040e981}{virtual bool \hyperlink{classduye_1_1_xml_declaration_ac5a1661738cab9369fb00b0ab040e981}{accept} (\hyperlink{classduye_1_1_xml_visitor}{Xml\-Visitor} $\ast$visitor) const }\label{classduye_1_1_xml_declaration_ac5a1661738cab9369fb00b0ab040e981}

\begin{DoxyCompactList}\small\item\em Walk the X\-M\-L tree visiting this node and all of its children. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_declaration_a01d7fa73779de2474ba28709b9354700}{void {\bfseries copy\-To} (\hyperlink{classduye_1_1_xml_declaration}{Xml\-Declaration} $\ast$target) const }\label{classduye_1_1_xml_declaration_a01d7fa73779de2474ba28709b9354700}

\item 
\hypertarget{classduye_1_1_xml_declaration_a53d0ae9c3cc409354bb072d3b0df2a77}{virtual void {\bfseries stream\-In} (std\-::istream $\ast$in, std\-::string $\ast$tag)}\label{classduye_1_1_xml_declaration_a53d0ae9c3cc409354bb072d3b0df2a77}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
In correct X\-M\-L the declaration is the first entry in the file. 

\begin{DoxyVerb}* <?xml version="1.0" standalone="yes"?>
* \end{DoxyVerb}


Gny\-Xml will happily read or write files without a declaration, however. There are 3 possible attributes to the declaration\-: version, encoding, and standalone.

Note\-: In this version of the code, the attributes are handled as special cases, not generic attributes, simply because there can only be at most 3 and they are always the same. 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_xml_declaration_a3e3a634a7c060253d6f38a28213639b9}{\index{duye\-::\-Xml\-Declaration@{duye\-::\-Xml\-Declaration}!print@{print}}
\index{print@{print}!duye::XmlDeclaration@{duye\-::\-Xml\-Declaration}}
\subsubsection[{print}]{\setlength{\rightskip}{0pt plus 5cm}virtual void duye\-::\-Xml\-Declaration\-::print (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classduye_1_1_xml_declaration_a3e3a634a7c060253d6f38a28213639b9}


All Gny\-Xml classes can print themselves to a filestream or the string class (G\-Xml\-String in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. 

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the $<$$<$ operator.) 

Implements \hyperlink{classduye_1_1_xml_base_aeb28d8aeec84aad3ce290c6cc3a5ec06}{duye\-::\-Xml\-Base}.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/utils/duye\-\_\-xml.\-h\end{DoxyCompactItemize}
